package com.ruicar.afs.cloud.common.modules.dto.voucher;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.common.modules.enums.BusinessType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/11 11:18
 */
@Data
public class VoucherFlowInfoDto {
    @ApiModelProperty("业务交易流水号")
    @NotBlank(message = "业务交易流水号不能为空")
    private String transNo;

    @ApiModelProperty("埋点编号")
    @NotBlank(message = "埋点编号不能为空")
    private String buriedPointNo;

    @ApiModelProperty("合同号")
    private String contractNo;

    @ApiModelProperty("车辆品牌")
    private String carBrand;

    @ApiModelProperty("金融产品")
    private String financialProducts;

    @ApiModelProperty("部门")
    private String department;

    @ApiModelProperty("供应商名称")
    private String dealerName;

    @ApiModelProperty("客户名称")
    private String custName;

    @ApiModelProperty("业务类型 枚举值")
    private BusinessType businessType;

    @ApiModelProperty("制单人")
    private String creator;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("制单日期")
    private Date creatTime;

    @ApiModelProperty("记账日期")
    private Date keepAccountDate;

    @ApiModelProperty("来源系统")
    private String sourceSystem;
}
